const express = require('express')
const router = express.Router()

const { getCityCategoryData, getHotCityData, getCityIDByName } = require('../../controller/web/CityController')

// 提供城市按照首字母进行分类的数据
router.get('/city/category', getCityCategoryData)

// 获取热门城市数据
router.get('/city/hot', getHotCityData)

// 根据城市名称查询城市ID
router.post('/city/name/:city_name', getCityIDByName)

module.exports = router